<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>  
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!--框架必需start-->
	<script type="text/javascript" src="<%=basePath%>libs/js/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath%>libs/js/framework.js"></script>
	<link href="<%=basePath%>libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
	<link rel="stylesheet" type="text/css" id="skin" prePath="<%=basePath%>"/>
	<link rel="stylesheet" type="text/css" id="customSkin"/>
	
	<!-- 表单验证start -->
	<script src="<%=basePath%>libs/js/form/validationRule.js" type="text/javascript"></script>
	<script src="<%=basePath%>libs/js/form/validation.js" type="text/javascript"></script>
	<!-- 表单验证end -->
	
	<!--框架必需end-->
	<script language="javascript" type="text/javascript" src="<%=basePath%>js/formsub.js"></script>
	
</head>
<body>
<div class="box1" panelWidth="780">
	<form id="form1" action="Download_add.action" method="post" target="frmright" enctype="multipart/form-data">
		<input type="hidden" name="download.category.id" value="<s:property value="type"/>"/>
		<input type="hidden" name="download.userinfo.id" value="<s:property value="#session.userinfo.id"/>"/>
		<fieldset> 
			<legend>部门信息</legend> 
			<table class="tableStyle" transMode="true" footer="normal">
				<tr>
					<td width="10%">下载产品名称：</td>
					<td width="40%"><input id="name" type="text" name="download.name" class="validate[required]"/><font color="red">*</font></td>
				</tr>
				<tr>
					<td>下载产品介绍：</td>
					<td><FCK:editor instanceName="download.introduction" basePath="/FCKeditor" width="100%" height="360"> </FCK:editor></td>
				</tr>
				<tr>
					<td width="10%">下载产品上传：</td>
					<td width="40%"><input id="name" type="file" name="upload" class="validate[required]"/><font color="red">*</font></td>
				</tr>
				<tr>
					<td width="10%">下载产品运行环境：</td>
					<td width="40%"><input id="name" type="text" name="download.jre" class="validate[required]"/><font color="red">*</font></td>
				</tr>
				<tr>
					<td width="10%">下载产品语言：</td>
					<td width="40%"><input id="name" type="text" name="download.language" class="validate[required]"/><font color="red">*</font></td>
				</tr>
				<tr>
					<td width="10%">下载产品大小：</td>
					<td width="40%"><input id="name" type="text" name="download.filesize" class="validate[required]"/><font color="red">*</font></td>
				</tr>
			</table>
		</fieldset>		
		<div class="padding_top10">
			<table class="tableStyle" transMode="true">
				<tr>
					<td colspan="4" align="center">
						<input type="submit" value="提 交 " onclick="submitform()"/>
						<input type="reset" value="取消" onclick="closeWin()"/>
					</td>
				</tr>
			</table>
		</div> 
	</form>	
	<script>
	function closeWin(){
		top.Dialog.close();
	}
	</script>
</div>				
</body>

</html>